package com.scnb.command;

import java.awt.image.ConvolveOp;

public class Main {
    public static void main(String[] args) {
        Content c = new Content();
        c.msg = "123456";
        InsertCommand insertCommand = new InsertCommand(c);
        CopyCommand copyCommand = new CopyCommand(c);
        DeleteCommand deleteCommand = new DeleteCommand(c);
        System.out.println("==================insert command");
        System.out.println(c.msg);
        insertCommand.doit();
        System.out.println(c.msg);
        insertCommand.undo();
        System.out.println(c.msg);
        System.out.println("==================copy command");
        copyCommand.doit();
        System.out.println(c.msg);
        copyCommand.undo();
        System.out.println(c.msg);
        System.out.println("==================delete command");
        deleteCommand.doit();
        System.out.println(c.msg);
        deleteCommand.undo();
        System.out.println(c.msg);
    }

}
